package com.hushow.plugin.brick.controller;

import com.hushow.plugin.brick.service.ExtensionPointService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/extension/demo")
public class ExtensionPointDemoController {

    @Resource
    ExtensionPointService extensionPointService;

    @GetMapping("/getById")
    public List<Object> list(@RequestParam("id") String id) {
        return extensionPointService.getByIds(id);
    }

}
